Using the Management Interface

This section provides information on using the CLI and Web interface; on using queries, patterns, and wildcards in commands; on setting the command privilege level; and on exiting the management interface.

Using the Command Line Interface

The CLI provides a command-based view of the management interface. You enter commands at a command prompt, and command results are displayed in text.

The CLI can be accessed from a terminal that is connected directly to a node's console port, or you can use secure shell (ssh) or telnet to access a node and use the CLI to interact with the management interface remotely.

The CLI's command prompt is represented as node::> in the documentation. On a running Data ONTAP 10.0 system, the prompt shows the node name. For instance, on a node named engdata, the CLI prompt is engdata::>

Navigating CLI Command Directories

When using the command line interface, you can access a command directory by typing the directory's name at the prompt and then pressing the Enter key. The directory name is then included in the prompt text to indicate that you are interacting with this command directory. To move deeper into the command hierarchy, type the name of a command subdirectory followed by the Enter key; the subdirectory name is now included in the prompt text and the context shifts to that subdirectory.

You can navigate several command directories if the entire command is entered. For example, you can display information about disk drives by entering the storage disk show command at the prompt. You can also run the command by navigating through one command directory at a time, as shown in the following example:

node::> storage
node::storage> disk
node::storage disk> show

You can abbreviate commands by entering only the minimum number of letters in a command that makes the command unique to the current directory. For instance, to abbreviate the previous example, you can enter st d sh. You can use the Tab key to expand abbreviated commands and to display a command's parameters, including default parameter values.

You can use the top command to go to the top level of the command hierarchy, and the up or .. command to go up one level in the command hierarchy.

Editing CLI Commands

The command at the current command prompt is the current active command. You can edit the command by using the following key combinations. These key combinations are similar to those of the tcsh shell and the Emacs editor. In the following table, a caret (^) indicates that you must press the Ctrl key with the specified key.

Table 1.1. Command Line Editing in the CLI

Edit CommandAction
^bMove the cursor back one character.
^fMove the cursor forward one character.
^aMove the cursor to the beginning of the line.
^eMove the cursor to the end of the line.
^kRemove the contents of the edit buffer, from the cursor to the end of the line, and save it in the cut buffer.
^yYank the contents of the cut buffer, pushing it into the edit buffer at the cursor.
ESC bMove the cursor back one word.
ESC fMove the cursor forward one word.
ESC dCut the contents of the edit buffer, beginning at the cursor and continuing to the end of the following word.
ESC BackspaceDelete the word before the cursor.
^hDelete the character before the cursor.
BackspaceDelete the character before the cursor.
^dDelete the character after the cursor.
^pReplace the current contents of the edit buffer with the previous entry on the history list. For each successive ^p action, the history cursor moves to the previous entry.
^nReplace the current contents of the edit buffer with the next entry on the history buffer.
↓Down history.
↑Up history.
←Go backward one character.
→Go forward one character.
^qTTY start output.
^sTTY stop output.
^uClear the current edit buffer.
^vEscapes a special mapping for the following character. For instance, to enter a question mark into a command's arguments, press ^v, then press ?.
?Display context-sensitive help.